package Song.Han.day09.demo02;
/*
* 和String的相互转换
* */
public class Demo02StringBuilder {
    public static void main(String[] args) {
        //String -> StringBuilder
        String str = "hello";
        System.out.println("str:"+str);
        StringBuilder bu = new StringBuilder(str);
        bu.append(" world");
        System.out.println("bu:"+bu);

        //StringBuilder -> String
        String s = bu.toString();
        System.out.println("s:"+s);
    }
}
